/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.custom-heading {
  margin: 0px;
}

.mat-grid-list {
  border: 1px solid #DDE6F6;
  margin-top: 25px;
  margin-left: 25px;
  margin-right: 25px;
}

.image-grid {
  border: 1px solid #DDE6F6;
}

.image-generation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  // height: 100%;

  .image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    .main-image {
      flex: 1;
      display: flex;
      // align-items: center;
      justify-content: center;
      width: 100%;

      .main-image-placeholder {
        width: 100%;
        background-color: #e0e0e0;

        img {
          width: 100%;
          height: 50vh;
        }
      }
    }

    .thumbnail-container {
      display: flex;
      justify-content: center;
      margin-top: 20px;
      margin-bottom: 20px;

      .thumbnail {
        width: 100px;
        height: 100px;
        margin: 0 10px;
        cursor: pointer;

        .thumbnail-placeholder {
          width: 100%;
          height: 100%;
          background-color: #f0f0f0;

          img {
            width: 100%;
          }
        }
      }
    }
  }
}

.configuration {
  display: flex;
  flex-direction: column;
  padding: 20px;

  .aspect-ratio,
  .image-style {
    margin-bottom: 20px;

    button {
      margin: 0 10px 10px 0;
    }
  }

  .number-results {
    display: flex;
    align-items: center;
  }
}

.aspect-button {
  border: 1px solid #ccc;
}

.aspect-button.active {
  background-color: #e0e0e0;
  /* Example active background */
  border-color: #a0a0a0;
  /* Example active border */
  font-weight: bold;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  /* Example inset shadow for pressed look */
}

.style-button.active {
  background-color: #3f51b5;
  /* Example primary color */
  color: white;
}

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) {}

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) {}

// Large devices (desktops, 992px and up)
@media (min-width: 992px) {
  .max-height-image {
    width: auto;
  }
}

// X-Large devices (large desktops, 1200px and up)
@media (min-width: 1200px) {
  .max-height-image {
    max-width: 40vw;
  }
}

// XX-Large devices (larger desktops, 1400px and up)
@media (min-width: 1400px) {
  .max-height-image {
    max-width: 30vw;
  }
}